package com.mic.yzzn.plc.core.plcevents;

import com.mic.yzzn.plc.core.control.PLCCollectorImpl;

import java.util.EventObject;

/**
 * 新采集器事件
 */
public class PLCNewCollectorEvent extends EventObject
{
	/** 序列化版本号 */
	private static final long serialVersionUID = 7928398972846616995L;
	/** 新的采集器 */
	private PLCCollectorImpl collector;

	private PLCNewCollectorEvent(Object source)
	{
		super(source);
	}
	
	public PLCNewCollectorEvent(Object source, PLCCollectorImpl collector)
	{
		super(source);
		this.collector = collector;
	}
	
	// Getter
	public PLCCollectorImpl getCollector()
	{
		return collector;
	}
}
